﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MediaControl : System.Web.UI.UserControl
{
   public string link;
   public int mtype;
   public string imageurl;
   public string scomment;
   public string mid;
   public string vlink;
   public string plink;
   // 		http://arabic.cnn.com/rss/cnnarabic_topnews.rss rss feeed
    public string LINK
    {
        get { return link; }
        set { 
            link = value;
           
        
          }
    }
   
    public string SComment
    {
        get { return scomment; }
        set 
        { 
            scomment = value;
         
        
        }
    }
    public string MID
    {
        get { return mid; }
        set
        {
            mid = value;


        }
    }
    public int Mtype
    {
        get { return mtype; }
        set
        {
            mtype = value;


        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        switch (mtype)
        {
            case 1:
                ifvideo.Visible = true;
                vlink = link;
               
                break;
            case 2:
                ifphoto.Visible = true;
               
                plink = link;
                break;
            case 3:
                ifvideo.Visible = false;
                ifphoto.Visible = false;
                break;
            default:
                ifvideo.Visible = false;
                ifphoto.Visible = false;
                baselink.Visible = false;
                break;

        }
       
    }
}
